package com.yjc.drygoods.ware.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 换货需求
 *
 * @author yjc
 * @email yjc19979401754@126.com
 * @date 2022-11-01 16:20:12
 */
@Data
@TableName("wms_exchange_detail")
public class ExchangeDetailEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    private Long id;
    /**
     * 换货单id
     */
    private Long exchangeId;
    /**
     * 需换干货id
     */
    private Long spuId;
    /**
     * 需换干货名称
     */
    private String spuName;
    /**
     * 需换干货数量
     */
    private Double spuNum;
    /**
     * 需换干货总金额
     */
    private BigDecimal oriSpuTotalPrice;
    /**
     * 需换干货单价
     */
    private BigDecimal oriSpuPrice;
    /**
     * 置换后干货id
     */
    private Long afterSpuId=1L;
    /**
     * 置换后干货名称
     */
    private String afterSpuName;
    /**
     * 置换后干货数量
     */
    private Double afterSpuNum;
    /**
     * 置换后干货总金额
     */
    private BigDecimal afterSpuTotalPrice;
    /**
     * 置换后干货单价
     */
    private BigDecimal afterSpuPrice;
    /**
     * 供应商id
     */
    private Long supplierId;
    /**
     * 供应商名称
     */
    private String supplierName;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 置换后的干货存放仓库id
     */
    private Long wareId;
    /**
     * 置换后的干货存放仓库名称
     */
    private String wareName;
    /**
     * 需换干货批次
     */
    private Integer oriBatch;
    /**
     * 置换后干货批次
     */
    private Integer afterBatch;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 完整三级路径和对应的spu
     */
    @TableField(exist = false)
    private Long[] catelogPathWithSpu;

}
